package com.szeastroc.base.service;

import java.util.List;

import com.github.pagehelper.PageInfo;

public interface BaseService<T> {

	int insert(T entity);

	int insertSelective(T entity);

	int updateByPrimaryKey(T entity);

	int updateByPrimaryKeySelective(T entity);

	int deleteByPrimaryKey(Object primaryKey);

	int deleteByPrimaryKeys(List<Object> primarykeys);

	T selectOne(T entity);

	T selectByPrimaryKey(Object primaryKey);

	PageInfo<T> selectPage(int pageNum, int pageSize);

	void insertList(List<T> list);

	List<T> selectAll();
}
